import React, { Component } from 'react';
import { Route, Switch } from 'react-router-dom';
import './commodity-manage.css';

import CommodityHome from './commodity-home/commodity-home';
import CommodityDetail from './commodity-detail/commodity-detail';
import CommodityAdd from './commodity-add/commodity-add';

export default class commodityManage extends Component {
  render() {
    return (
      <div className="manage-container">
        <Switch>
          <Route
            exact={true}
            path="/commodity-manage"
            component={CommodityHome}
          />
          <Route path="/commodity-manage/add" component={CommodityAdd} />
          <Route path="/commodity-manage/detail" component={CommodityDetail} />
        </Switch>
      </div>
    );
  }
}
